const webpack = require('webpack');
const baseConfig = require('./webpack.common');
const { merge } = require('webpack-merge');

module.exports = merge(baseConfig, {
  mode: 'development',
  devServer: {
    hotOnly: true,
  },
  devtool: 'source-map',
  plugins: [
    new webpack.DefinePlugin({
      BASE_URL: '"public/"',
    }),
    new webpack.HotModuleReplacementPlugin(),
  ],
});
